let ipts = document.querySelectorAll('input')
console.log(ipts);
ipts[2].onclick = function() {
    let username = ipts[0].value
    let password = ipts[1].value
    let params = {
        username,
        password,
    };
    axios.get(logAPI, { params }).then(res => {
        console.log(res);
        alert(res.data.msg)
        if (res.data.code == 1) {
            let uid = res.data.data.id
            console.log(uid);
            localStorage.setItem('uid', uid)
            localStorage.setItem('token', res.data.data.token)
            localStorage.setItem('username', res.data.data.username)
            location.href = 'index.html'
        }
    })
}